package com.example.sunmiv1.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018-05-17.
 */

public class GoodBean implements Serializable {

    private int status;

    private int limit;
    private int size;
    private List<DataBean> data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public List<DataBean> getData() {
        if (data == null) {
            return new ArrayList<>();
        }
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {

        private String id;
        private String class_name;
        private List<GoodsBean> goods;

        public DataBean(String id, String class_name, List<GoodsBean> goods) {
            this.id = id;
            this.class_name = class_name;
            this.goods = goods;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getClass_name() {
            return class_name;
        }

        public void setClass_name(String class_name) {
            this.class_name = class_name;
        }

        public List<GoodsBean> getGoods() {
            return goods;
        }

        public void setGoods(List<GoodsBean> goods) {
            this.goods = goods;
        }

        public static class GoodsBean implements Serializable {

            private String usual;
            private String id;
            private String goods_img;
            private String goods_num;
            private String goods_code;
            private String purch_price;
            private String goods_number;
            private String goods_name;
            private String retail_price;
            private String vip_retail_state;
            private Double agoods_count;
            //private String can_exchange_weigh;
            private String pricing_method; //1.非稱重 2.稱重
            private String serial_number_state;//1串碼商品 0非串碼商品

            private String attribute_state;
            private String store_mem_status;
            private String store_mem_price;
            private String cheng_price=null;
            private String plus_mem_status;
            private String plus_price;
            private int class_position;
            private int good_position;
            private String spell_name;
            private List<SkuAttrBean> skuAttr;
            private List<SkuListBean> skuList;
            private List<SerialBean> serialList;

            private String company;

            public String getCompany() {
                return company == null ? "" : company;
            }

            public void setCompany(String company) {
                this.company = company;
            }

            private double sku_discount = 1;//單品折扣


            private String temporaryPrice;

            private String store_mem_integral;
            private String plus_mem_integral;

            private int temporaryIntegral;

            private String sku_name;
            private String sku_code;
            private String sku_num;
            private String cost_price;
            private String goods_gifts_id;
            private String remain_inventory;
            private String goods_image;
            private String sku_id;
            private int num;
            private String gift_id;
            private int is_gift_good;
            private String c_id;

            public String getC_id() {
                return c_id == null ? "" : c_id;
            }

            public void setC_id(String c_id) {
                this.c_id = c_id;
            }

            public GoodsBean() {
            }

            public GoodsBean(GoodBean.DataBean.GoodsBean goodsBean) {
                this.usual = goodsBean.getUsual();
                this.id = goodsBean.getId();
                this.goods_img = goodsBean.getGoods_img();
                this.goods_num = goodsBean.getGoods_num();
                this.goods_code = goodsBean.getGoods_code();
                this.purch_price = goodsBean.getPurch_price();
                this.goods_number = goodsBean.getGoods_number();
                this.goods_name = goodsBean.getGoods_name();
                this.retail_price = goodsBean.getRetail_price();
                this.vip_retail_state = goodsBean.getVip_retail_state();
                this.agoods_count = goodsBean.getAgoods_count();
                this.pricing_method = goodsBean.getPricing_method();
                this.serial_number_state = goodsBean.getSerial_number_state();
                this.attribute_state = goodsBean.getAttribute_state();
                this.store_mem_status = goodsBean.getStore_mem_status();
                this.store_mem_price = goodsBean.getStore_mem_price();
                this.cheng_price = goodsBean.getCheng_price();
                this.plus_mem_status = goodsBean.getPlus_mem_status();
                this.plus_price = goodsBean.getPlus_price();
                this.class_position = goodsBean.getClass_position();
                this.good_position = goodsBean.getGood_position();
                this.spell_name = goodsBean.getSpell_name();
                this.skuAttr = goodsBean.getSkuAttr();
                this.skuList = goodsBean.getSkuList();
                this.company = goodsBean.getCompany();
                this.sku_discount = goodsBean.getSku_discount();
                this.temporaryPrice = goodsBean.getTemporaryPrice();
                this.store_mem_integral = goodsBean.getStore_mem_integral();
                this.plus_mem_integral = goodsBean.getPlus_mem_integral();
                this.temporaryIntegral = goodsBean.getTemporaryIntegral();
                this.sku_name = goodsBean.getSku_name();
                this.sku_code = goodsBean.getSku_code();
                this.sku_num = goodsBean.getSku_num();
                this.cost_price = goodsBean.getCost_price();
                this.goods_gifts_id = goodsBean.getGoods_gifts_id();
                this.remain_inventory = goodsBean.getRemain_inventory();
                this.goods_image = goodsBean.getGoods_image();
                this.sku_id = goodsBean.getSku_id();
                this.num = goodsBean.getNum();
                this.gift_id = goodsBean.getGift_id();
                this.is_gift_good = goodsBean.getIs_gift_good();
                this.c_id = goodsBean.getC_id();
            }

            public GoodsBean(GiftGoodsInfo.DataBean.ListBean listBean) {
                this.id = listBean.getId();
                this.sku_id = listBean.getSku_id();
                this.goods_num = listBean.getChooseNum() + "";
                this.goods_number = listBean.getGoods_number();
                this.goods_name = listBean.getGoods_name();
                this.gift_id = listBean.getGoods_gifts_id();
                this.is_gift_good = 1;
                this.sku_name = listBean.getSku_name();
                this.sku_code = listBean.getSku_code();
                this.sku_num = listBean.getSku_num();
                this.cost_price = listBean.getCost_price();
                this.goods_gifts_id = listBean.getGoods_gifts_id();
                this.remain_inventory = listBean.getRemain_inventory();
                this.goods_image = listBean.getGoods_image();
                this.num = listBean.getChooseNum();
                this.agoods_count = Double.parseDouble(listBean.getChooseNum() + "");
                this.pricing_method = "1";
                this.sku_id = listBean.getSku_id();
                this.temporaryPrice = "0";
                this.retail_price = "0";
            }

            public List<SerialBean> getSerialList() {
                if (serialList == null) {
                    return new ArrayList<>();
                }
                return serialList;
            }

            public void setSerialList(List<SerialBean> serialList) {
                this.serialList = serialList;
            }

            public String getSerial_number_state() {
                return serial_number_state == null ? "" : serial_number_state;
            }

            public void setSerial_number_state(String serial_number_state) {
                this.serial_number_state = serial_number_state;
            }

            public String getGift_id() {
                return gift_id == null ? "" : gift_id;
            }

            public void setGift_id(String gift_id) {
                this.gift_id = gift_id;
            }

            public int getIs_gift_good() {
                return is_gift_good;
            }

            public void setIs_gift_good(int is_gift_good) {
                this.is_gift_good = is_gift_good;
            }

            public String getSku_name() {
                return sku_name == null ? "" : sku_name;
            }

            public void setSku_name(String sku_name) {
                this.sku_name = sku_name;
            }

            public String getSku_code() {
                return sku_code == null ? "" : sku_code;
            }

            public void setSku_code(String sku_code) {
                this.sku_code = sku_code;
            }

            public String getSku_num() {
                return sku_num == null ? "" : sku_num;
            }

            public void setSku_num(String sku_num) {
                this.sku_num = sku_num;
            }

            public String getCost_price() {
                return cost_price == null ? "" : cost_price;
            }

            public void setCost_price(String cost_price) {
                this.cost_price = cost_price;
            }

            public String getGoods_gifts_id() {
                return goods_gifts_id == null ? "" : goods_gifts_id;
            }

            public void setGoods_gifts_id(String goods_gifts_id) {
                this.goods_gifts_id = goods_gifts_id;
            }

            public String getRemain_inventory() {
                return remain_inventory == null ? "" : remain_inventory;
            }

            public void setRemain_inventory(String remain_inventory) {
                this.remain_inventory = remain_inventory;
            }

            public String getGoods_image() {
                return goods_image == null ? "" : goods_image;
            }

            public void setGoods_image(String goods_image) {
                this.goods_image = goods_image;
            }

            public String getSku_id() {
                return sku_id == null ? "" : sku_id;
            }

            public void setSku_id(String sku_id) {
                this.sku_id = sku_id;
            }

            public int getNum() {
                return num;
            }

            public void setNum(int num) {
                this.num = num;
            }

            public int getTemporaryIntegral() {
                return temporaryIntegral;
            }

            public void setTemporaryIntegral(int temporaryIntegral) {
                this.temporaryIntegral = temporaryIntegral;
            }

            public String getStore_mem_integral() {
                return store_mem_integral == null ? "" : store_mem_integral;
            }

            public String getStore_mem_integralInfo() {
                return store_mem_integral == null ? "" : (Double.parseDouble(store_mem_integral) > 0 ? "+" + store_mem_integral + "積分" : "");//
            }

            public void setStore_mem_integral(String store_mem_integral) {
                this.store_mem_integral = store_mem_integral;
            }

            public String getPlus_mem_integral() {
                return plus_mem_integral == null ? "" : plus_mem_integral;
            }


            public String getPlus_mem_integralInfo() {
                return plus_mem_integral == null ? "" : (Double.parseDouble(plus_mem_integral) > 0 ? "+" + plus_mem_integral + "積分" : "");//
            }

            public void setPlus_mem_integral(String plus_mem_integral) {
                this.plus_mem_integral = plus_mem_integral;
            }


            @Override
            public String toString() {
                return "GoodsBean{" +
                        "usual='" + usual + '\'' +
                        ", id='" + id + '\'' +
                        ", goods_img='" + goods_img + '\'' +
                        ", goods_num='" + goods_num + '\'' +
                        ", goods_code='" + goods_code + '\'' +
                        ", purch_price='" + purch_price + '\'' +
                        ", goods_number='" + goods_number + '\'' +
                        ", goods_name='" + goods_name + '\'' +
                        ", retail_price='" + retail_price + '\'' +
                        ", vip_retail_state='" + vip_retail_state + '\'' +
                        ", agoods_count=" + agoods_count +
                        ", pricing_method='" + pricing_method + '\'' +
                        ", serial_number_state='" + serial_number_state + '\'' +
                        ", attribute_state='" + attribute_state + '\'' +
                        ", store_mem_status='" + store_mem_status + '\'' +
                        ", store_mem_price='" + store_mem_price + '\'' +
                        ", cheng_price='" + cheng_price + '\'' +
                        ", plus_mem_status='" + plus_mem_status + '\'' +
                        ", plus_price='" + plus_price + '\'' +
                        ", class_position=" + class_position +
                        ", good_position=" + good_position +
                        ", spell_name='" + spell_name + '\'' +
                        ", skuAttr=" + skuAttr +
                        ", skuList=" + skuList +
                        ", serialList=" + serialList +
                        ", company='" + company + '\'' +
                        ", sku_discount=" + sku_discount +
                        ", temporaryPrice='" + temporaryPrice + '\'' +
                        ", store_mem_integral='" + store_mem_integral + '\'' +
                        ", plus_mem_integral='" + plus_mem_integral + '\'' +
                        ", temporaryIntegral=" + temporaryIntegral +
                        ", sku_name='" + sku_name + '\'' +
                        ", sku_code='" + sku_code + '\'' +
                        ", sku_num='" + sku_num + '\'' +
                        ", cost_price='" + cost_price + '\'' +
                        ", goods_gifts_id='" + goods_gifts_id + '\'' +
                        ", remain_inventory='" + remain_inventory + '\'' +
                        ", goods_image='" + goods_image + '\'' +
                        ", sku_id='" + sku_id + '\'' +
                        ", num=" + num +
                        ", gift_id='" + gift_id + '\'' +
                        ", is_gift_good=" + is_gift_good +
                        ", c_id='" + c_id + '\'' +
                        '}';
            }

            public String getTemporaryPrice() {
                return temporaryPrice == null ? "" : temporaryPrice;
            }

            public void setTemporaryPrice(String temporaryPrice) {
                this.temporaryPrice = temporaryPrice;
            }

            public double getSku_discount() {
                return sku_discount;
            }

            public void setSku_discount(double sku_discount) {
                this.sku_discount = sku_discount;
            }

            public String getSpell_name() {
                return spell_name == null ? "" : spell_name;
            }

            public void setSpell_name(String spell_name) {
                this.spell_name = spell_name;
            }

            public String getPlus_mem_status() {
                return plus_mem_status == null ? "" : plus_mem_status;
            }

            public void setPlus_mem_status(String plus_mem_status) {
                this.plus_mem_status = plus_mem_status;
            }

            public String getPlus_price() {
                return plus_price == null ? "" : plus_price;
            }

            public void setPlus_price(String plus_price) {
                this.plus_price = plus_price;
            }

            public List<SkuAttrBean> getSkuAttr() {
                if (skuAttr == null) {
                    return new ArrayList<>();
                }
                return skuAttr;
            }

            public void setSkuAttr(List<SkuAttrBean> skuAttr) {
                this.skuAttr = skuAttr;
            }

            public List<SkuListBean> getSkuList() {
                if (skuList == null) {
                    return new ArrayList<>();
                }
                return skuList;
            }

            public void setSkuList(List<SkuListBean> skuList) {
                this.skuList = skuList;
            }

            public int getClass_position() {
                return class_position;
            }

            public void setClass_position(int class_position) {
                this.class_position = class_position;
            }

            public int getGood_position() {
                return good_position;
            }

            public void setGood_position(int good_position) {
                this.good_position = good_position;
            }

            public String getCheng_price() {
                return cheng_price == null ? "" : cheng_price;
            }

            public void setCheng_price(String cheng_price) {
                this.cheng_price = cheng_price;
            }

            public String getUsual() {
                return usual;
            }

            public void setUsual(String usual) {
                this.usual = usual;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getGoods_img() {
                return goods_img == null ? "" : goods_img;
            }

            public void setGoods_img(String goods_img) {
                this.goods_img = goods_img;
            }

            public String getGoods_num() {
                return goods_num == null ? "0" : goods_num;
            }

            public void setGoods_num(String goods_num) {
                this.goods_num = goods_num;
            }


            public String getPurch_price() {
                return purch_price;
            }

            public void setPurch_price(String purch_price) {
                this.purch_price = purch_price;
            }

            public String getGoods_code() {
                return goods_code == null ? "" : goods_code;
            }

            public void setGoods_code(String goods_code) {
                this.goods_code = goods_code;
            }

            public String getGoods_number() {
                return goods_number == null ? "" : goods_number;
            }

            public void setGoods_number(String goods_number) {
                this.goods_number = goods_number;
            }

            public String getGoods_name() {
                return goods_name == null ? "" : goods_name;
            }

            public void setGoods_name(String goods_name) {
                this.goods_name = goods_name;
            }

            public String getRetail_price() {
                return retail_price == null ? "" : retail_price;
            }

            public void setRetail_price(String retail_price) {
                this.retail_price = retail_price;
            }

            public String getVip_retail_state() {
                return vip_retail_state == null ? "" : vip_retail_state;
            }

            public void setVip_retail_state(String vip_retail_state) {
                this.vip_retail_state = vip_retail_state;
            }

            public Double getAgoods_count() {
                return agoods_count == null ? 1 : agoods_count;
            }

            public void setAgoods_count(Double agoods_count) {
                this.agoods_count = agoods_count;
            }

            public String getPricing_method() {
                return pricing_method == null ? "" : pricing_method;
            }

            public void setPricing_method(String pricing_method) {
                this.pricing_method = pricing_method;
            }

            public String getAttribute_state() {
                return attribute_state == null ? "" : attribute_state;
            }

            public void setAttribute_state(String attribute_state) {
                this.attribute_state = attribute_state;
            }

            public String getStore_mem_status() {
                return store_mem_status == null ? "" : store_mem_status;
            }

            public void setStore_mem_status(String store_mem_status) {
                this.store_mem_status = store_mem_status;
            }

            public String getStore_mem_price() {
                return store_mem_price == null ? "" : store_mem_price;
            }

            public void setStore_mem_price(String store_mem_price) {
                this.store_mem_price = store_mem_price;
            }

            public List<SkuAttrBean> getSkuinfo() {
                return skuAttr;
            }

            public void setSkuinfo(List<SkuAttrBean> skuAttr) {
                this.skuAttr = skuAttr;
            }

            public List<SkuListBean> getSkujson() {
                return skuList;
            }

            public void setSkujson(List<SkuListBean> skuList) {
                this.skuList = skuList;
            }

            public static class SkuAttrBean implements Serializable {
                /**
                 * id : 24
                 * name : 數量1
                 * list : [{"id":"86","name":"5個"},{"id":"87","name":"10個"}]
                 */

                private String id;
                private String name;
                private List<ListBean> list;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public List<ListBean> getInfo() {
                    return list;
                }

                public void setInfo(List<ListBean> list) {
                    this.list = list;
                }

                public static class ListBean implements Serializable {
                    /**
                     * id : 86
                     * name : 5個
                     */

                    private String id;
                    private String name;

                    public String getPath() {
                        return id;
                    }

                    public void setPath(String id) {
                        this.id = id;
                    }

                    public String getName() {
                        return name;
                    }

                    public void setName(String name) {
                        this.name = name;
                    }
                }
            }

            public static class SkuListBean implements Serializable {
                /**
                 * id : 15
                 * sku_id_list : 86,2,26,31
                 * retail_price : 179.00
                 * goods_img : http://csls.mobzhifu.com/Uploads/Picture/Goods/2019-01-21/5c457beb35f939580.png
                 * sku_num : 1.000
                 * goods_num : 1.000
                 * plus_price: "0.00",
                 */

                private String id;
                public String sku_id_list;
                private String retail_price;
                private String goods_img;
                private String sku_num;
                private String goods_num;
                private String sku_name;
                private String sku_code;
                private String name;
                private String store_mem_status;
                private String store_mem_price;
                private String plus_price;

                private String store_mem_integral;
                private String plus_mem_integral;
                private String sku_goods_number;

                public String getSku_goods_number() {
                    return sku_goods_number == null ? "" : sku_goods_number;
                }

                public void setSku_goods_number(String sku_goods_number) {
                    this.sku_goods_number = sku_goods_number;
                }

                public String getStore_mem_integral() {
                    return store_mem_integral == null ? "" : store_mem_integral;
                }

                public String getStore_mem_integralInfo() {
                    return store_mem_integral == null ? "" : "+" + store_mem_integral + "積分";
                }

                public void setStore_mem_integral(String store_mem_integral) {
                    this.store_mem_integral = store_mem_integral;
                }

                public String getPlus_mem_integral() {
                    return plus_mem_integral == null ? "" : plus_mem_integral;
                }


                public String getPlus_mem_integralInfo() {
                    return plus_mem_integral == null ? "" : "+" + plus_mem_integral + "積分";
                }

                public void setPlus_mem_integral(String plus_mem_integral) {
                    this.plus_mem_integral = plus_mem_integral;
                }

                public String getPlus_price() {
                    return plus_price == null ? "" : plus_price;
                }

                public void setPlus_price(String plus_price) {
                    this.plus_price = plus_price;
                }


                public String getSku_name() {
                    return sku_name;
                }

                public void setSku_name(String sku_name) {
                    this.sku_name = sku_name;
                }

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getSku_res() {
                    return sku_id_list;
                }

                public void setSku_res(String sku_id_list) {
                    this.sku_id_list = sku_id_list;
                }

                public String getRetail_price() {
                    return retail_price;
                }

                public void setRetail_price(String retail_price) {
                    this.retail_price = retail_price;
                }

                public String getGoods_img() {
                    return goods_img;
                }

                public void setGoods_img(String goods_img) {
                    this.goods_img = goods_img;
                }

                public String getNum() {
                    return sku_num;
                }

                public void setNum(String sku_num) {
                    this.sku_num = sku_num;
                }

                public String getGoods_num() {
                    return goods_num;
                }

                public void setGoods_num(String goods_num) {
                    this.goods_num = goods_num;
                }

                public String getSku_code() {
                    return sku_code;
                }

                public void setSku_code(String sku_code) {
                    this.sku_code = sku_code;
                }

                public String getSku() {
                    return name;
                }

                public void setSku(String name) {
                    this.name = name;
                }

                public String getStore_mem_status() {
                    return store_mem_status;
                }

                public void setStore_mem_status(String store_mem_status) {
                    this.store_mem_status = store_mem_status;
                }

                public String getStore_mem_price() {
                    return store_mem_price;
                }

                public void setStore_mem_price(String store_mem_price) {
                    this.store_mem_price = store_mem_price;
                }
            }


            public static class SerialBean implements Serializable {
                private String main_serial_number;
                private String auxiliary_serial_number_one;
                private String auxiliary_serial_number_two;

                public SerialBean(String main_serial_number, String auxiliary_serial_number_one, String auxiliary_serial_number_two) {
                    this.main_serial_number = main_serial_number;
                    this.auxiliary_serial_number_one = auxiliary_serial_number_one;
                    this.auxiliary_serial_number_two = auxiliary_serial_number_two;
                }

                public String getMain_serial_number() {
                    return main_serial_number == null ? "" : main_serial_number;
                }

                public void setMain_serial_number(String main_serial_number) {
                    this.main_serial_number = main_serial_number;
                }

                public String getAuxiliary_serial_number_one() {
                    return auxiliary_serial_number_one == null ? "" : auxiliary_serial_number_one;
                }

                public void setAuxiliary_serial_number_one(String auxiliary_serial_number_one) {
                    this.auxiliary_serial_number_one = auxiliary_serial_number_one;
                }

                public String getAuxiliary_serial_number_two() {
                    return auxiliary_serial_number_two == null ? "" : auxiliary_serial_number_two;
                }

                public void setAuxiliary_serial_number_two(String auxiliary_serial_number_two) {
                    this.auxiliary_serial_number_two = auxiliary_serial_number_two;
                }
            }
        }
    }
}
